package com.itheima.sky.controller.backend;

import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.redis.core.StringRedisTemplate;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@Slf4j
public class TestController {
    @Autowired
    private StringRedisTemplate rds;
    @RequestMapping("/hello")
    public String hello() {
        rds.opsForValue().set("_ok","fine");
        return "YYDS";
    }
}
